class CreateDataCollectionTypes < ActiveRecord::Migration
	def self.up
		create_table :data_collection_types do |t|
			t.column :name, :string, :null => false
			t.timestamps
		end
		
		DataCollectionType.all_types.values.each do |t|
			DataCollectionType.create :name => t
		end		
	end
	
	def self.down
		drop_table :data_collection_types
	end
end
